//
//  Config.h
//  Payment
//
//  Created by  ztryxh on 2018/2/27.
//  Copyright © 2018年 ebo. All rights reserved.
//

#ifndef Config_h
#define Config_h
#define LBXScan_Define_Native  //包含native库
#define LBXScan_Define_ZXing   //包含ZXing库
#define LBXScan_Define_ZBar   //包含ZBar库
#define LBXScan_Define_UI     //包含界面库
#define kStatusHeight [[UIApplication sharedApplication] statusBarFrame].size.height

#define kScaleW(w)      kScreenWidth/667.0f;
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
#define kAppVersion @"1.0.8"
// 自定义Log
#ifdef DEBUG // 调试
#define MyLog(...) NSLog(__VA_ARGS__)
#else // 发布打包
#define MyLog(...)
#endif
#define kTimeKLineColor    [UIColor colorWithRed:0.15f green:0.53f blue:0.70f alpha:1.00f]
//文字红
#define kRedColor          kBtnRedColor
//文字绿
#define kGreenColor        kBtnGreenColor
//本地保存的k线type
#define GKLineType [[NSUserDefaults standardUserDefaults] integerForKey:@"KLineType"]
#define GKLineTitle [[NSUserDefaults standardUserDefaults] valueForKey:@"KLineTitle"]

//国际化语言
#define kGetStr(str)      [[Language ShareInstance]getString:(str)]
// 获得颜色
#define kGetColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
#define rgb(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
// 获得颜色（十六进制）
#define kSetColor(s)            [UIColor colorWithHexColorString:s]
//状态栏高度
#define kStatusHeight [[UIApplication sharedApplication] statusBarFrame].size.height
//项目中单像素线的高度
#define kOnePointHeight 1/[UIScreen mainScreen].scale
//x和其他的tabbar高度
#define kTabBarHeight   (kScreenHeight>800?83:49)
//以4.7寸屏幕为标准的比例宽高
#define kSCALE_WIDTH(w)     (kScreenWidth/375.0*w)
#define kSCALE_HEIGHT(h)    (kScreenHeight/667.0*h)
//x和其他的navbar 的高度
#define kNavH (kScreenHeight>800?96:44)
//tabbar 字体颜色
#define kTabFontColor kGetColor(64, 85, 119)
#define kNavHeight              (kStatusHeight + 44)
//字号的适配封装
#define FONT(f)                 [UIFont systemFontOfSize:kSCALE_WIDTH(f)]
//按钮红
#define kBtnRedColor          kSetColor(@"ea0070")
//按钮绿
#define kBtnGreenColor        kSetColor(@"70a800")
//nav字体颜色
#define kNavgationColor  kGetColor(255, 255, 255)
#define kMainBGColor  [UIColor colorWithRed:0.07f green:0.08f blue:0.11f alpha:1.00f]
//Controller背景颜色
//#define kGlobalBackColor  kSetColor(@"ffffff")
//全局背景色
#define kGlobalBackCorlor kSetColor(@"F2F6FB")
#define kNavTitleColor kSetColor(@"FFFFFF")

#define kBackColor  kSetColor(@"181B2A")

#define kBtnColor  kSetColor(@"1E2234")
#define kMainColor      [UIColor colorWithRed:0.31f green:0.34f blue:0.46f alpha:1.00f]
#define kLoginFontColor kGetColor(25, 111, 174)
#define kLoginBtnColor [UIColor colorWithRed:0.19 green:0.58 blue:0.71 alpha:1.00]//kGetColor(29, 153, 255)
#define kGrayTextColor kGetColor(58, 58 ,58)
#define kTimerValue @5
//实时频率
#define GActual @3
#define NetWorkType [[NSUserDefaults standardUserDefaults] valueForKey:@"NetWorkType"]
#define NetWorkTypeNow [[NSUserDefaults standardUserDefaults] valueForKey:@"NetorkTypeNow"]
//定时器时长
#define TimeLength [[NSUserDefaults standardUserDefaults] valueForKey:@"timeLength"]
//刷新频率
//选择wifi实时刷新
#define ISWIFI ((NetWorkType&&[NetWorkType isEqualToString:@"wifi"])?GActual:@1000000)
//选择总是实时刷新
#define ISALL   (TimeLength?TimeLength:GActual)
//®
#define GTimeLength (NetWorkType&&[NetWorkType isEqualToString:@"wifi"])?ISWIFI:ISALL
//滑动导航高度
#define scNavHeight    kSCALE_HEIGHT(34)
//是否是正式服

#define kIsNormalServer     YES

//服务器地址j
#define kUrl kIsNormalServer? @"https://safpay.2015mobi.com":@"http://192.168.8.103:2018"
//#define kUrl kIsNormalServer? @"http://www.topbtch.com:8080":@"192.168.8.31"

//点对点的地址
#define kPointServerUrl kServerUrl

#define kBaseUrl   [NSString stringWithFormat:@"%@/",kUrl]
#define kCoinIconUrl [NSString stringWithFormat:@"%@/images/icon/",kUrl]
#define KGetQrCode @"wallet/get/phone"
#define kLastBase @"/api/"
#define kLanTestUrl  [[kBaseUrl stringByAppendingString:[[Language ShareInstance] getUrlLanguage]]stringByAppendingString:kLastBase]

//#define kServerUrl kLanTestUrl


#define kServerUrl kIsNormalServer?@"https://safpay.2015mobi.com":@"http://192.168.8.103:2018"
#define kTransferIn @"/wallet/transfer/into"
#define kOutInfo @"/wallet/out/info"
#define kCoinDetails @"/wallet/coin/details"
#define kGetNewCode @"/user/new/code"
#define kGetOldCode @"/user/old/code"
#define kBindPhone @"/user/mobile/bind"
#define kChangePhone @"/user/change/mobile"
#define kGetCode @"/guest/mobile/code"
#define kCoinList @"/wallet/coin/list"
//行情新闻
#define kMarketNews @"guest/market/news"
//获取更新app信息
#define kAppUpdateInfo @"system/version"
//获取币种的人民币价格
#define kCnyPrice @"wallet/coin/cnyprice"
//P2P快捷交易
#define kOrderUrl @"p2p/spec/buy"
//购买理财
#define kBuyFinancial @"wallet/buy/package"
//邀请收益列表
#define kProfitDetails @"wallet/invite/income"
//规则问题
#define kRuleQA @"wallet/package/reles"
//理财详情
#define kFinancialDetails @"wallet/package/coin"
//锁仓列表
#define kLockList @"wallet/user/package"
//理财列表
#define kPackageList @"wallet/package/list"
//理财首页轮播
#define kPackageBanner @"wallet/package/carousel"
//首页理财通知
#define kPackageNotice @"guest/package/notice"
//图片地址
#define kImgUrl(s)   [NSString stringWithFormat:@"%@/images/icon/%@",kUrl,s]
#define kHomeGetAd @"market/get/adver"
//市场种类导航
#define kMarketNav @"market/get/tradearea"
//k线接口
#define kMarketKLine @"market/get/kline"
//市场详情
#define kMarketDetail @"ApiMarket/market_detail"
//市场货币类别数据
#define kMarketSub @"market/get/marketlist"
//市场订单薄
#define kMarketGetOrderList @"market/get/tradenew"
//市场实时成交
#define kMarketGetOnTimeDeal @"market/get/tradelog"
//获取币种列表
#define kMarketGetCoinList @"market/get/coinlist"

//获取区号
#define kGetMobilePrefix @"guest/mobile/prefix"
//获取手机验证码
#define kGetMobileVerCode @"guest/mobile/code"
//验证手机验证码
#define kVerMobileCode @"guest/mobile/vail/code"
//深度接口
#define kMarketDeep @"ApiMarket/get_deep_data"
//注册
#define kRegister @"guest/mobile/register"
//创建用户
#define kWalletCreate @"guest/register"
//修改密码
#define kImportPwd @"user/import/password"
//验证密码
#define kVerPwd @"user/change/password"
//导入钱包
#define kWalletImport @"guest/import/wallet"
//登录
#define kLoginByMobile @"guest/mobile/login"
//重置密码
#define kResetPwd @"guest/mobile/reset/pass"
//用户协议
#define kUserInfo @"guest/register/protocol"
//用户信息
#define kGetUserInfo @"user/info"
//获取用户邀请奖励
#define kGetUserInviteReward @"user/invite/coin"
//理财协议
#define kPackageProtocol @"wallet/package/protocol"
//帮助信息列表
#define kHelpInfoList @"helpinfo/infolist"
//帮助信息详情
#define kHelpInfoDetails @"helpinfo/details"
//新手机验证码
#define kGetNewMobileCode @"user/new/code"
//旧手机验证码
#define kGetOldMobileCode @"user/old/code"
//更换手机号
#define kChangeMobile @"user/change/mobile"
//获取用户信息
#define kGetUserInfo @"user/info"
//上传图片
#define kUploadImage @"image/upload"
//举报
#define kFraudReport @"intercept/report"
//个人资产
#define kMyProperty @"wallet/my/property"
//首页获取通知图片接口
#define kGetMyAD @"wallet/get/notice"
//更换头像
#define kChangeAvatar @"user/change/avatar"
//上传身份证
#define kCommitIdentity @"user/idcode/verify"
//更改昵称
#define kChangeNickName @"user/change/nickname"
////币种详情
//#define kCoinDetails @"/wallet/coin/details"
//添加币种
#define kCoinAdd @"wallet/coin/wallet"
//绑定邮箱
#define kBindEmail @"user/bind/email"
//发送邮件
#define kSendEmail @"user/send/email"
//等级认证
#define kSafeLvVerfity @"user/safe/level"
//安全
#define kInterceptBlacklist     @"intercept/blacklist"
#define kBlacklistDetails       @"intercept/blacklist/details"
#define kMobileBind             @"user/mobile/bind"
#define kBlacklistMobiles       @"intercept/blacklist/mobiles"
//转入
//#define kTransferInto           @"wallet/transfer/into"
//转出
#define kTransferOut @"/wallet/transfer/out"
//币种列表
//#define kCoinList               @"wallet/coin/list"
//用户地址列表
#define kTransferAddressselect               @"wallet/transfer/addressselect"
//添加地址
#define kTransferAddressinsert               @"wallet/transfer/addressinsert"
//修改地址
#define kTransferAddresupdate               @"wallet/transfer/addressupdate"
//删除地址
#define kTransferAddresdel               @"wallet/transfer/addressdel"
//转账记录
#define kTransferRecord @"wallet/transfer/record"
//获取黑名单转账地址
#define kBlackTransferAddresses @"intercept/blacklist/transfer/addresses"
//获取黑名单转账地址
#define kTransferDetails @"wallet/transfer/details"
//获取融云token
#define kGetRongcloudToken @"rongcloud/gettoken"
//添加钱包
#define kAddWallet @"wallet/add/wallet"

/*
 点对点功能
 */
//添加，编辑银行卡
#define PointAddCash @"p2p/cash/add"
//获取绑定列表
#define PointGetCash @"p2p/cash/get"
//解绑银行卡
#define PointUnlockCash @"p2p/cash/unlock"
//发布广告
#define PointPublishAD @"p2p/add/adver"
//我的广告列表
#define PointListUseradver @"p2p/list/useradver"
//获取广告列表
#define PointGetADList @"p2p/list/adver"
//获取订单列表
#define PointGetOrder @"p2p/list/order"
//订单详情
#define PointDetailOrder @"p2p/detail/order"
//撤销广告
#define PointCancelAD @"p2p/cancel/adver"
//获取币种列表
#define PointGetCoinList @"p2p/all/coins"
//创建订单
#define PointCreateOrder @"p2p/create/order"
//买家支付订单
#define PointPayOrder @"p2p/pay/order"
//卖家确认收款
#define PointConfirmOrder @"p2p/confirm/order"
//买家取消订单
#define PointCancelOrder @"p2p/cancel/order"
//获取可卖币种列表
#define PointGetCanSellCoinList @"p2p/list/coin"
//查询订单状态更新
#define PointListUpdate @"p2p/list/update"

/*
 行情
 */
//获取用户委托
#define GetUsertrade @"market/get/usertrade"
//撤销
#define TradeCanceltrade @"trade/canceltrade"
//用户委托接口
#define TradeEntrust @"trade/entrust"
//helpinfo/infolist
#define Helpinfonfolist @"helpinfo/infolist"
//一键撤单
#define TradeCancelall  @"trade/cancelall"

//理财列表
#define kGetFinancing @"wallet/package/list"
//我的理财
#define kGetMyFinancing @"wallet/user/package"
//购买理财
#define kBuyFinancing @"wallet/buy/package"
//理财收益规则
#define kRuleFinancing @"wallet/send/info"
//理财续存
#define kRenewFinancing @"wallet/user/renew"
//理财余额
#define kFinancingMoney @"wallet/package/coin"

/*
 新首页
 */
//获取首页顶部轮播广告
#define TopAdvert   @"market/get/top_advert"
//获取首页公告
#define GetNotice   @"market/get/notice"
//获取市场推荐列表
#define MarketRec   @"market/get/market_rec"
//获取财富信息
#define kGetFinancingInfo @"guest/invite/limit"
//涨幅榜
#define MarketsSort @"market/get/markets_sort"


#define kSetURL(s)              [kUrl stringByAppendingString:s]


#define AppPrivacyKey @"30820275020100300d06092a864886f70d01010105000482025f3082025b0201000281810093079b21e07c29403a1515b71c7413faad1e22ca60b05dc825a04b0ae3f41eebdac991c9f90714fbf6bfb2edc6de30d1d91b411519e089b5b830a4da97885add8cbaaaba3b61ca748449a685d6e08f69c161eff012ede67240d90484ca6227f4a9f02f9e97f6942de71556acdf04147e25d58d4f4ef6f7ccadc90a55af5eca17020301000102818028ecdb0f88eec684ac26264f3bca4bad60f69c747c895af15517d30b8afbee8773f4db71beb16bf3de70e99b29d9baf90e5779bc27e1ca331cbbdd8742da9f7fd3a4d5a59f14756ad2b16e60409ae945e7ad6e6f4a110eb391cfe8364a87c2d42084e2b4660412e71d8bc7b417005f63c21943e1b3b5bee3eae488eb0a2b3531024100c2522a0d08180f68f9ec59d543a321a132f6c3e54745d14107e86c4bde50725644975599807965c927cd2a91e2b61750d9c7444fbd490299aa3872c37386966d024100c1b2b8d519ff9934cc2da06b1866e9e9a983408562b575c32a03f5e854c23b8017b30398e93a5000511b2297ad838916ef4ec89b18367eede340d3fa4364201302406200462ce4541e117759f7c452a44725a12a4a89ab744ea05978a28570cd699c9063324c843ab556c9b7f32c380655a3f4f1464660d41d779a1d75e394b3dfd1024069074fd1bd572aebc60ab7815aa9f30c102e6b3de8581c92c6a57f218b54068f5e4a6318f6ddf7a33457525a8c6b565a69487ede1a32f2806b492ba7f802c2a102400cd3a21879f46ac87b1cebb85db1167b42a75b508d912c403b5fdbcb27e8b6a843bcb87d2954d383e19157b96aa251f87bb20fdcaf01a1002b7a5e99571083fc"
#define AppPublifckKey @"30819f300d06092a864886f70d010101050003818d0030818902818100ad71918a0ee9861a0e28f048a88fe42ddbaa588d7fecb0874a19d83efdb428fb76408b48a5a09192c9733ae39a33ae96fe17182da244e00a3c5466baee622ee25a9dac1abf634f0324921e61a9cfda95013dc53ec67a97628b7c8b4e0de0aa07a2c4a1dbfc5b2292a3ca9800c66d8ba58569bb2c977e3b61bc508957f4a93c5f0203010001"
#define AppId @"15208243238987"
#define RongCloudAPPKey @"kj7swf8ok1i62"
#endif /* Config_h */
